package com.panshi.api;

import com.panshi.vo.R;
import com.panshi.vo.SearchVO;
import com.panshi.vo.StatusVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "hasbei-user.com",path = "/api/member",contextId = "MemberApi")
public interface MemberApi {

    @ApiOperation("分页查询会员列表")
    @PostMapping(value = "/pageMemberList" ,produces = "application/json")
    R pageMemberList(@RequestBody SearchVO searchVO);

    @ApiOperation("启用禁用会员账号")
    @PutMapping("/edit/status")
    R editMemberStatus(@RequestBody StatusVO statusVO);
}
